package com.share.dymamic.configer;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.share.dymamic.utils.ApplicationContextHolder;

@Component
@Scope(value = "singleton")
public class AppProperties {
	@Value("${weimob.homepath}")
	public String weimobHomepath;
	
	@Value("${weimob.sessionUrl}")
	public String weimobSessionUrl;
	
	@Value("${weimob.masterPath}")
	public String weimobMasterPath;
	
	@Value("${weimob.fenXiaoUrl}")
	public String weimobFenXiaoUrl;
	
	@Value("${weimobAuthName}")
	public String weimobAuthName;
	
	@Value("${weimobAuthApi}")
	public String weimobAuthApi;
	
	/**
	 * OOS配置*********start***************
	 */
	@Value("${oss.aliyun.accessid}")
	public String accessid;
	
	@Value("${oss.aliyun.accesskey}")
	public String accesskey;
	
	@Value("${oss.aliyun.endpoint}")
	public String endpoint;
	
	@Value("${oss.aliyun.bucketname}")
	public String bucketname;
	/**
	 * OOS配置*********end***************
	 */

	public static AppProperties getInstance() {
		return (AppProperties) ApplicationContextHolder.getBean("appProperties");
	}
	public String getWeimobHomepath() {
		return weimobHomepath;
	}

	public void setWeimobHomepath(String weimobHomepath) {
		this.weimobHomepath = weimobHomepath;
	}

	public String getWeimobSessionUrl() {
		return weimobSessionUrl;
	}

	public void setWeimobSessionUrl(String weimobSessionUrl) {
		this.weimobSessionUrl = weimobSessionUrl;
	}

	public String getWeimobMasterPath() {
		return weimobMasterPath;
	}

	public void setWeimobMasterPath(String weimobMasterPath) {
		this.weimobMasterPath = weimobMasterPath;
	}

	public String getWeimobFenXiaoUrl() {
		return weimobFenXiaoUrl;
	}

	public void setWeimobFenXiaoUrl(String weimobFenXiaoUrl) {
		this.weimobFenXiaoUrl = weimobFenXiaoUrl;
	}

	public String getAccessid() {
		return accessid;
	}

	public void setAccessid(String accessid) {
		this.accessid = accessid;
	}

	public String getAccesskey() {
		return accesskey;
	}

	public void setAccesskey(String accesskey) {
		this.accesskey = accesskey;
	}

	public String getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(String endpoint) {
		this.endpoint = endpoint;
	}

	public String getBucketname() {
		return bucketname;
	}

	public void setBucketname(String bucketname) {
		this.bucketname = bucketname;
	}

	public String getWeimobAuthName() {
		return weimobAuthName;
	}

	public void setWeimobAuthName(String weimobAuthName) {
		this.weimobAuthName = weimobAuthName;
	}

	public String getWeimobAuthApi() {
		return weimobAuthApi;
	}

	public void setWeimobAuthApi(String weimobAuthApi) {
		this.weimobAuthApi = weimobAuthApi;
	}
	
	
}
